// pages/achievement/achievement.js
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    water_times : 0
  },
  onShow(){
    if(app.globalData._has_rem_count < 10){
      this.setData({
        water_times:0,
      })
    }
    else{
      this.setData({
        water_times: app.globalData._has_rem_count - 8,
      })
    }
    
  }
  
})